import request from 'utils/requset.js'

/**
 *登录请求获取 token
 * @param {mobile:'',code:''} data
 */
export const login = (data) => {
  return request({
    method: 'POST',
    url: 'authorizations',
    data,
  })
}

export const getUserInfo = () => {
  return request({
    url: 'user/profile',
  })
}
